/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('attrpic', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    pic_title: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    url: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    width: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    height: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    price: {
      type: DataTypes.FLOAT,
      allowNull: true
    },
    spec: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    finished_pic: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    thumbnail_url: {
      type: DataTypes.STRING(256),
      allowNull: true
    },
    pid: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    }
  }, {
    tableName: 'attrpic'
  });

  Model.associate = function() {

  }

  return Model;
};
